package com.example.light.common.util;

import com.example.light.web.meeting.entity.OaRoom;

import java.util.List;

public class SubstringUtil {
    public static List<OaRoom> delString(List<OaRoom> list){
        for (int i = 0; i < list.size(); i++) {
            String start = list.get(i).getRoomUsedStart();
            String end = list.get(i).getRoomUsedEnd();
            start = start.substring(0, start.length() - 2);
            end = end.substring(0, end.length() - 2);
            list.get(i).setRoomUsedStart(start);
            list.get(i).setRoomUsedEnd(end);
        }
        return  list;
    }
}
